package com.example.vertification.repository;

import com.example.vertification.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface UserRepository extends JpaRepository<User, Long> {


        User findByName(String name);
        User findByUid(long uid);
        User findByTelephone(String telephone);
        List<User> findAllByPosition(Integer position);

        User findByNameAndPassword(String name, String password);
        User findByTelephoneAndPassword(String telephone, String password);


}